/*
 * Public Credit Information Sharing Platform(PCISP).
 * Copyright (c) 2019-2020 jsxzkingdee and/or its affiliates. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 * Please visit https://www.zhengxinsoft.com if you need additional information or have any questions.
 */

package com.platform;

import com.platform.comm.BaseStartUp;
import com.platform.config.properties.CustomSecurityProperties;
import com.platform.uaa.config.ClientsProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.core.env.Environment;

/**
 * Description: 资源批处理
 *
 * @author coder
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@EnableConfigurationProperties(value = {CustomSecurityProperties.class, ClientsProperties.class})
public class UaaApplication extends BaseStartUp {

    public static void main(String... args) {
        SpringApplication app = new SpringApplication(UaaApplication.class);
        Environment env = app.run(args).getEnvironment();
        logApplicationStartup(env);
    }
}
